package theDrunkenKiss.code.presentation;

import theDrunkenKiss.code.business.listeners.ReadTheManualActionlistener;
import theDrunkenKiss.code.business.listeners.StartTheGameButtonListener;
import android.app.Activity;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;

public class Titlescreen extends ScrollView {

	private LinearLayout titleScreenLinearLayout;
	private TextView title;
	private Button startTheGameButton, readThemanualButton;

	public Titlescreen(Activity titlescreen) {
		super(titlescreen);

		this.titleScreenLinearLayout = new LinearLayout(titlescreen);
		this.titleScreenLinearLayout.setOrientation(LinearLayout.VERTICAL);
		this.addView(this.titleScreenLinearLayout);
		
		this.title = new TextView(titlescreen);
		this.title.setText("title");
		this.titleScreenLinearLayout.addView(this.title);
		
		this.startTheGameButton = new Button(titlescreen);
		this.startTheGameButton.setText("start the game");
		this.startTheGameButton.setOnClickListener(new StartTheGameButtonListener(titlescreen));
		this.titleScreenLinearLayout.addView(this.startTheGameButton);

		
		this.readThemanualButton = new Button(titlescreen);
		this.readThemanualButton.setText("read the manual");
		this.readThemanualButton.setOnClickListener(new ReadTheManualActionlistener(titlescreen));
		this.titleScreenLinearLayout.addView(this.readThemanualButton);
		
		

	}

}
